package com.msb.apipassenger.feign;

import com.msb.commons.dto.VerificationCodeDTO;
import com.msb.commons.response.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: chshh
 * @version: 1.0
 */
@FeignClient("service-passenger-user")
public interface ServicePassengerUserClient {
    @PostMapping("/user")
    public ResponseResult loginOrRegister(@RequestBody VerificationCodeDTO verificationCodeDTO);

    @PostMapping("/userByPhone/{passengerPhone}")
    public ResponseResult getUser(@PathVariable("passengerPhone") String passengerPhone);
}
